home *** CD-ROM | disk | FTP | other *** search
/ MacWorld: Super Stacks! / Macworld CD.iso / HyperCard Archives / International / French v1.2.5.1 / Piles principales / Notes sur la version 1.2.5 / card_7851.txt < prev    next >
Text File  |  1989-10-04  |  5KB  |  161 lines

  1. -- card: 7851 from stack: in.5
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 5683
  5. -- name: Select
  6.  
  7.  
  8. -- part contents for background part 9
  9. ----- text -----
  10. Nouvelles commandes HyperTalk
  11. Carte 4 sur 5
  12.  
  13. -- part contents for background part 7
  14. ----- text -----
  15. Select
  16.  
  17. -- part contents for background part 8
  18. ----- text -----
  19. select <bouton> | <champ>
  20. select [{before|after}] <extrait> of <champ>
  21. select [{before|after}] <extrait> of msg box
  22. select [{before|after}] text of <champ>
  23. select empty
  24.  
  25.  
  26. -- part contents for background part 10
  27. ----- text -----
  28. <bouton> est une expression identifiant un bouton ; 
  29. <champ> une expression identifiant un champ ;  
  30. <extrait> identifie une sous-cha√Æne.
  31.  
  32. -- part contents for background part 11
  33. ----- text -----
  34. La commande Select permet de s√©lectionner un bouton, un champ ou le texte d'un champ. Select Text et Select suivi d'une expression d√©finissant une sous-cha√Æne, sert √† s√©lectionner le texte d'un champ ou √† y positionner le point d'insertion.
  35.  
  36. -- part contents for background part 17
  37. ----- text -----
  38. --s√©lection d'un bouton ou d'un champ :
  39. select background button id 12
  40. select me --s√©lectionne l'objet
  41. select text of me --s√©lectionne le texte (champ)
  42. --positionnement du point d'insertion :
  43. select before word 2 of field "syntaxe"
  44. select after line 1 of first fld
  45. select after text of cd fld id 2378 
  46. select before text of registre -- variable
  47. --s√©lection d'une portion de texte :
  48. select char 1 of field "syntaxe"
  49. select word 4 to 9 of message box
  50. select line 1 of me -- dans un script
  51. select text of target -- dans un script
  52.  
  53.  
  54. -- part contents for background part 18
  55. ----- text -----
  56. on selectDemo
  57.  
  58. --S√©lection et d√©placement d'un objet :
  59.   select bkgnd button "Fermer"
  60.   set dragSpeed to 100
  61.   drag from 364,294 to 364,154
  62.   wait 2 seconds
  63.   domenu "undo"
  64. --S√©lection d'une cha√Æne de caract√®res :
  65.   select char 2 to 5 of field "titre"
  66.   put the selection
  67.   wait 2 seconds
  68.   cleanExit -- dans le script du fond courant
  69.  
  70. end selectDemo
  71.  
  72.  
  73. -- part contents for background part 35
  74. ----- text -----
  75. ‚Ä¢  Select ne peut servir √† s√©lectionner un champ ou un
  76.     bouton masqu√©.
  77.  
  78. ‚Ä¢  Select ne fonctionne qu'aux niveaux Auteur et 
  79.     Programmation.
  80.  
  81. ‚Ä¢  Pour positionner le point d'insertion apr√®s le dernier 
  82.     caract√®re d'un champ, utilisez "select after text" :
  83.  
  84.     select after text of field "syntaxe"
  85.  
  86. ‚Ä¢  Pour s√©lectionner tout le texte d'un champ, utilisez 
  87.     "select text" :
  88.  
  89.     select text of field "syntaxe" 
  90.  
  91. ‚Ä¢  Pour positionner le point d'insertion avant le premier 
  92.     caract√®re d'un champ, utilisez "select before text":
  93.  
  94.     select before text of field "syntaxe"
  95.  
  96. ‚Ä¢  Pour positionner le point d'insertion √† tout autre endroit
  97.     √† l'int√©rieur du champ, utilisez "select before" ou "select 
  98.     after" suivi d'une sous-cha√Æne :
  99.  
  100.     select before character 12 of field "adresse"
  101.     select after line 13 of field "adresse"
  102.  
  103. ‚Ä¢  Lorsque vous employez une commande telle que
  104.  
  105.     select line 3 of field "text"
  106.  
  107.     n'oubliez pas qu'une ligne est d√©limit√©e par un caract√®re 
  108.     retour. Lorsqu'une ligne est coup√©e en deux pour une 
  109.     question de longueur, HyperCard consid√®re qu'il s'agit 
  110.     d'une seule ligne.
  111.  
  112. ‚Ä¢  Select peut √™tre suivi de "me" ou "target", faisant 
  113.     r√©f√©rence √† un champ ou √† un bouton : 
  114.  
  115.     select me -- s√©lectionne l'objet d√©sign√© par me
  116.     select target -- s√©lectionne l'objet d√©sign√© par target
  117.     select the target -- idem
  118.  
  119.     Employez la forme "select text" pour s√©lectionner le 
  120.     contenu de  "me"  ou de "target" :
  121.  
  122.     select text of me -- s√©lectionne le contenu du champ 
  123.                                    auquel "me" fait r√©f√©rence
  124.     select text of target -- s√©lectionne le contenu du champ 
  125.                                         auquel "target" fait r√©f√©rence
  126.  
  127. ‚Ä¢  Utilisez "select empty" pour dess√©lectionner un texte ou 
  128.     √¥ter le point d'insertion.
  129.     Vous pouvez √©galement utiliser une commande du type :
  130.     
  131.     click at 0,0
  132.  
  133. ‚Ä¢  select char 3 to 1 of field 1
  134.  
  135.     place le point d'insertion avant le caract√®re 3
  136.  
  137. ‚Ä¢  Si une ligne inexistante est s√©lectionn√©e, des caract√®res 
  138.     retour sont ins√©r√©s jusqu'√† la ligne demand√©e :
  139.     Ex : si le champ 1 contient deux lignes, la commande
  140.  
  141.     select line 4 of card field 1
  142.  
  143.     ins√©rera 2 caract√®res retour dans le champ
  144.  
  145. ‚Ä¢  La commande Select est particuli√®rement utile pour 
  146.     s√©lectionner un objet recouvert par un ou plusieurs 
  147.     autres :
  148.  
  149.     select card button id 78
  150.  
  151.     est √©quivalent √† :
  152.  
  153.     choose button tool
  154.     click at the loc of card button id 78
  155.  
  156. -- part contents for background part 31
  157. ----- text -----
  158. selectedChunk
  159. selectedField
  160. selectedLine
  161. selectedText